package com.weixing.mall.provider.model.dto;

import com.weixing.mall.core.enums.IsReadEnum;
import com.weixing.mall.core.validation.Mobile;
import com.weixing.mall.core.validation.Password;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 会员注册dto
 *
 * @Author: kfc
 * @Description: <br/>
 * Date:Create in 2019/9/6 17:00
 * @Modified By:
 */
@Data
public class RegisterDto {
    @ApiModelProperty(value = "手机号")
    @Mobile(message = "请输入正确的手机号")
    private String mobile;
    @ApiModelProperty(value = "登录密码")
    @Password(message = "密码格式不正确，8-18数字和字母组成")
    private String password;
    @ApiModelProperty(value = "确认密码")
    private String confirmPassword;
    @ApiModelProperty(value = "协议是否已阅读")
    @NotNull(message = "参数不合法")
    private IsReadEnum isRead;
}
